package com.atguigu.jxc.service.impl;

import com.atguigu.jxc.dao.PurchaseListGoodsDao;
import com.atguigu.jxc.entity.PurchaseList;
import com.atguigu.jxc.entity.PurchaseListGoods;
import com.atguigu.jxc.service.PurchaseListGoodsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * description
 *
 * @author SZ
 * @date 2022/9/25/11:13
 */
@Service
public class PurchaseListGoodsServiceImpl implements PurchaseListGoodsService {
    @Autowired
    private PurchaseListGoodsDao purchaseListGoodsDao;

    @Override
    public void save(PurchaseListGoods purchaseListGoods) {
        purchaseListGoodsDao.insert(purchaseListGoods);
    }

    @Override
    public List<PurchaseList> getGoodsList(Integer purchaseListId) {
        return purchaseListGoodsDao.getGoodsList(purchaseListId);
    }
}
